﻿/**************************************************************
*作者：Leon
*创建时间：2021/12/26 10:45:07
**************************************************************/
using Microsoft.EntityFrameworkCore;

namespace StudentManagement.Models
{
    public class AppDbContext:DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options):base(options)
        {

        }
        public DbSet<Student> Students { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Seed();
        }
    }
}
